<?php defined('IN_ADMIN') or exit('Access Denied!'); ?>

<?php
    if($shop_type > 0){
?>
<ul>
  <li id="_MP901" class="sub_menu"><a href="javascript:_M(0, 0, '');" hidefocus="true" style="outline:none;">返回列表</a></li>
</ul>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>店铺管理</h3>
<ul>
  <li id="_MP101" class="sub_menu"><a href="javascript:_MP(101,'/admin/shop/modify/<?=$shop_id;?>#setting_1', '商户管理');" hidefocus="true" style="outline:none;">基本信息</a></li>
  <li id="_MP102" class="sub_menu"><a href="javascript:_MP(102,'/admin/shop/modify/<?=$shop_id;?>#setting_2', '商户管理');" hidefocus="true" style="outline:none;">联系信息</a></li>
  <li id="_MP103" class="sub_menu"><a href="javascript:_MP(103,'/admin/shop/modify/<?=$shop_id;?>#setting_3', '商户管理');" hidefocus="true" style="outline:none;">SEO 优化</a></li>
  <li id="_MP104" class="sub_menu"><a href="javascript:_MP(104,'/admin/shop/modify/<?=$shop_id;?>#setting_4', '商户管理');" hidefocus="true" style="outline:none;">风格设置</a></li>
  <li id="_MP105" class="sub_menu"><a href="javascript:_MP(105,'/admin/shop/modify/<?=$shop_id;?>#setting_5', '商户管理');" hidefocus="true" style="outline:none;">其他设置</a></li>
</ul>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>优惠卷管理</h3>
<ul>
   <li id="_MP112" class="sub_menu"><a href="javascript:_MP(155,'/admin/coupon_menu/list/<?=$shop_id;?>', '优惠卷管理');" hidefocus="true" style="outline:none;">优惠卷列表</a></li>
</ul>

<?php
    }
    if($shop_type == 1){
?>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>外卖信息</h3>
<ul>
  <li id="_MP111" class="sub_menu"><a href="javascript:_MP(111,'/admin/waimai/modify/<?=$shop_id;?>', '送餐信息');" hidefocus="true" style="outline:none;">送餐信息</a></li>
</ul>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>菜品信息</h3>
<ul>
  <li id="_MP121" class="sub_menu"><a href="javascript:_MP(121,'/admin/dish/list/<?=$shop_id;?>', '菜品列表');" hidefocus="true" style="outline:none;">菜品列表</a></li>
  <li id="_MP122" class="sub_menu"><a href="javascript:_MP(122,'/admin/dish_cat/list/<?=$shop_id;?>', '菜品分类');" hidefocus="true" style="outline:none;">菜品分类</a></li>
</ul>
<?php
    }else if($shop_type == 2){
?>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>酒店信息</h3>
<ul>
  <li id="_MP111" class="sub_menu"><a href="javascript:_MP(111,'/admin/hotel/modify/<?=$shop_id;?>', '酒店信息');" hidefocus="true" style="outline:none;">酒店信息</a></li>
  <li id="_MP112" class="sub_menu"><a href="javascript:_MP(112,'/admin/hotel_hall/list/<?=$shop_id;?>', '宴会厅管理');" hidefocus="true" style="outline:none;">宴会厅列表</a></li>
  <li id="_MP113" class="sub_menu"><a href="javascript:_MP(113,'/admin/hotel_menu/list/<?=$shop_id;?>', '套餐管理');" hidefocus="true" style="outline:none;">套餐列表</a></li>
</ul>
<?php
    }else{
?>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>内容管理</h3>
<ul>
  <li id="_MP902" class="sub_menu"><a href="javascript:_MP(902,'/admin/shop/list?shop_type=2');" hidefocus="true" style="outline:none;">酒店管理</a></li>
  <li id="_MP901" class="sub_menu"><a href="javascript:_MP(901,'/admin/shop/list?shop_type=1');" hidefocus="true" style="outline:none;">外卖管理</a></li>
</ul>
<?php
    }
    if($shop_type > 0){
?>
<h3 class="f14"><span class="switchs cu on" title="展开与收缩"></span>相册图片</h3>
<ul>
  <li id="_MP201" class="sub_menu"><a href="javascript:_MP(201,'/admin/album/list/<?=$shop_id;?>');" hidefocus="true" style="outline:none;">相册列表</a></li>
  <li id="_MP202" class="sub_menu"><a href="javascript:_MP(202,'/admin/album_cat/list/<?=$shop_id;?>');" hidefocus="true" style="outline:none;">相册分类</a></li>
</ul>
<?php
    }
?>
<script type="text/javascript">
$(".switchs").each(function(i){
    var ul = $(this).parent().next();
    $(this).click(
    function(){
        if(ul.is(':visible')){
            ul.hide();
            $(this).removeClass('on');
                }else{
            ul.show();
            $(this).addClass('on');
        }
    })
});
</script>